import Request from '@/utils/requset.js'
import operate from '@/common/operate.js'
let request = new Request().http

// 注册（学生）
export const studentRegister = function(data) {
	return request({
		url: "/api/Login/register",
		method: "POST",
		data: data,
	})
}

// 年级列表
export const gradeList = function(data) {
	return request({
		url: "/api/Index/grade_list",
		method: "GET",
		data: data,
	})
}

// 登陆（学生）
export const passwordLogin = function(data) {
	return request({
		url: "/api/Login/password_login",
		method: "POST",
		data: data,
	})
}

// 密码登录（学生）
export const studentLanding = function(data) {
	return request({
		url: "/api/Login/password_login",
		method: "POST",
		data: data,
	})
}

// 发送短信验证码
export const sendSms = function(data) {
	return request({
		url: "/api/Login/send_sms",
		method: "POST",
		data: data,
	})
}

// 校验短信验证码
export const checkSms = function(data) {
	return request({
		url: "/api/Login/check_sms",
		method: "POST",
		data: data,
	})
}